package com.zs.usc.common.log.enums;


import com.baomidou.mybatisplus.core.enums.IEnum;

public enum OperationTypes implements IEnum<Integer> {

    UNKNOWN(0, "未知"),
    QUERY(1, "查询"),
    CREATE(2, "新增"),
    UPDATE(3, "修改"),
    DELETE(4, "删除"),
    IMPOWER(5, "授权"),
    IMPORT(6, "导入"),
    EXPORT(7, "导出"),
    FORCEOUT(8, "强退"),
    LOGIN(9, "登录"),
    SAVE(10, "保存");


    private Integer value;
    private String name;

    /**
     * 构造函数
     *
     * @param value
     */
    OperationTypes(Integer value, String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public String getName() {
        return name;
    }
}
